package com.aion.jirc.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Created by IntelliJ IDEA.
 * User: Aion
 * Date: 11-02-20
 * Time: 11:05
 */
public class IRCUtils {

    private static final SimpleDateFormat TIMESTAMP = new SimpleDateFormat("HH:mm:ss a");
    private static final SimpleDateFormat FULL_DATE = new SimpleDateFormat("EE MM d HH:mm:ss y");

    public static String getTimestamp() {
        return "[" + getDate() + "]";
    }

    private static String getDate() {
        Calendar c = Calendar.getInstance();
        return TIMESTAMP.format(c.getTime());
    }

    public static String getFullDate() {
        Calendar c = Calendar.getInstance();
        return FULL_DATE.format(c.getTime());
    }
}
